#include "NodeBullet.h"


CNodeBullet::CNodeBullet(TypeOfBullet type)
{
	switch (type)
	{
	case NORMAL_BULLET:
		bullet_ = new CNormalBullet();
		break;
	case M_BULLET:
		bullet_ = new CM0Bullet();
		break;
	case F_BULLET:
		bullet_ = new CFBullet();
		break;
	case S_BULLET:
		bullet_ = new CSBullet();
		break;
	case L_BULLET:
		bullet_ = new CLBullet();
		break;
	}
	next_ = NULL;
}


CNodeBullet::~CNodeBullet()
{
	if (bullet_ != NULL)
		delete bullet_;
	if (next_ != NULL)
		delete next_;
}
